package com.yunji.news.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunji.news.entity.QualificationList;

import java.util.List;

/**
 * 入围名单服务接口
 *
 * @author yunji
 * @since 2024-11-26
 */
public interface QualificationListService extends IService<QualificationList> {

    /**
     * 分页查询入围名单
     */
    IPage<QualificationList> getQualificationPage(Integer page, Integer size, 
                                                 Long schoolId, Long majorId, 
                                                 String qualificationType, String keyword);

    /**
     * 生成入围名单
     */
    boolean generateQualificationList(Long schoolId, Long majorId, String qualificationType, Integer count);

    /**
     * 发布入围名单
     */
    boolean publishQualificationList(Long[] ids);

    /**
     * 获取公开的入围名单
     */
    List<QualificationList> getPublicQualificationList(Long schoolId, Long majorId, String qualificationType);

    /**
     * 查询学生入围状态
     */
    QualificationList getStudentQualification(String idCard, Long schoolId);
}